<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Master extends Model
{
    use HasFactory;
    use SoftDeletes;
    protected $fillable=[
        'name',
        'email',
        'img',
        'keshi',
        'zhicheng',
        'zhiwu',
        'hospital',
        'show',


    ];
    public function comment(){
        return $this->belongsToMany(Video::class,'comments', 'master_id','video_id');
    }
}
